Creating or Updating Web Service Interface on WS-AppServer Models |
|
A Web service interface is a container for Web service operations generated by WS-AppServer. The grouping is done at the model level and not at the level of individual Web services. Therefore, to create a Web service interface, you need to select the models that contain Web service operations. WS-AppServer provides you the option to create new Web service interface for different models and also to add models to the existing Web services.
- Double-click the <WS-AppServer Package> from either of the following locations:
- Workspace Documents (My Recent Documents) window.
- Workspace Documents (Explorer) > <solution> > <project>. The WS-AppServer Package window appears, displaying the data models and their corresponding attributes, methods, and relations.
- On the WS-AppServer Package toolbar, click . The Generate Web service Interface on WS-AppServer Models dialog box appears.
- Select classes in the following ways and click Next.
Option
Description
Auto select related classes
Enables selection of all the related classes in a single click.
Search
To filter classes based on the characters typed in the field.
Class name
The table header. Enables selection of all the classes.
<class name>
To select an individual class. You can navigate through the list of classes using the buttons above the table, and select individual classes.
Note:
If you have selected the Auto select related classes option, all the related classes will also get selected, as you select each class. - Under Generate to Web service Interface, select one of the following options:
Option
Description
New
Creates a new Web service interface. If you select this option, do the following:
1.Enter the name of the new Web service in the Web Service Name field.
2.Enter the name of the new Web service interface in the Web service Interface Name field.Note:
By default, it displays the package name as the Web service interface.3.Click to browse and select a folder to store the Web service. The name of the folder appears in the Web services Folder Name field.
Existing
Updates an existing Web service interface. If you select this option, click to browse select the Web service interface from the list. The name of the Web service interface appears in the Web service Interface Name field.
- Click Generate to either generate a new Web service interface or to update an existing Web service interface.
Note
A Ws-AppServer Class inherits its namespace from the Ws-AppServer package it belongs to. An Application Developer can change the namespace of this class. In such a case, mapping of objects and namespaces is as follows:- the Web service Operations defined on the Ws-AppServer class belong to the Package Namespace.
- the Ws-AppServer classes that appear in the SOAP request or the response belong to the Class Namespace.
A new Web service interface is created or the existing Web service interface is updated.
After you complete this task:
You must attach the generated Web service interface to the WS-AppServer service.